#include <iostream>
#include "../gamma.h"
using namespace std;

int main(int argc, char *argv[])
{
	std::list<unsigned int*> *distancias = new std::list<unsigned int*>();
	for(unsigned int i = 100000; i < 100004; i++)
	{
		distancias->push_back(new unsigned int(i));
	}
	
	Gamma::Gamma *miGamma = new Gamma::Gamma(distancias);
	std::list<unsigned char*> *gammas = miGamma->getGammas();
	
	Gamma::Gamma *miGamma2 = new Gamma::Gamma(gammas);
	distancias = miGamma2->getDistancias();
	std::list<unsigned int*>::iterator it;
	
	unsigned int j = 1;
	for(it = distancias->begin(); it != distancias->end(); it++)
	{
		if(**it != j)
		{
			cout<<"Es "<<**it<<" y deberia ser: "<<j<<"\n";
		}
		j++;
	}
	cout<<"Fin. Comprimido en: "<<gammas->size()<<" bytes.\n";
	
	delete(miGamma);
	delete(miGamma2);
	return 0;
}
